\doxysubsection{dgr-\/udp-\/application.h}
\hypertarget{dgr-udp-application_8h_source}{}\label{dgr-udp-application_8h_source}\index{model/dgr-\/udp-\/application.h@{model/dgr-\/udp-\/application.h}}
\mbox{\hyperlink{dgr-udp-application_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00001}00001\ \textcolor{comment}{/*\ -\/*-\/\ Mode:C++;\ c-\/file-\/style:"{}gnu"{};\ indent-\/tabs-\/mode:nil;\ -\/*-\/\ */}}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00002}00002\ \textcolor{preprocessor}{\#ifndef\ DGR\_UDP\_APPLICATION\_H}}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00003}00003\ \textcolor{preprocessor}{\#define\ DGR\_UDP\_APPLICATION\_H}}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00004}00004\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00005}00005\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00006}00006\ \textcolor{preprocessor}{\#include\ <iostream>}}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00007}00007\ \textcolor{preprocessor}{\#include\ "{}ns3/core-\/module.h"{}}}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00008}00008\ \textcolor{preprocessor}{\#include\ "{}ns3/network-\/module.h"{}}}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00009}00009\ \textcolor{preprocessor}{\#include\ "{}ns3/point-\/to-\/point-\/module.h"{}}}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00010}00010\ \textcolor{preprocessor}{\#include\ "{}ns3/applications-\/module.h"{}}}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00011}00011\ \textcolor{preprocessor}{\#include\ "{}ns3/internet-\/module.h"{}}}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00012}00012\ \textcolor{preprocessor}{\#include\ "{}ns3/flow-\/monitor-\/module.h"{}}}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00013}00013\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00014}00014\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{namespacens3}{ns3}}\ \{}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00015}00015\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00016}\mbox{\hyperlink{classns3_1_1_d_g_r_udp_application}{00016}}\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classns3_1_1_d_g_r_udp_application}{DGRUdpApplication}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{class_application}{Application}}}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00017}00017\ \{}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00018}00018\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00019}00019\ \textcolor{keyword}{public}:}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00020}00020\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00021}00021\ \ \ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a789f5dd5d50db1e9d60f7f7618098f0d}{DGRUdpApplication}}\ ();}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00022}00022\ \ \ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_ad7423806aaf0be2db0e87be4d30dae7f}{\string~DGRUdpApplication}}()\ \textcolor{keyword}{override};}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00023}00023\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00028}00028\ \ \ \textcolor{keyword}{static}\ TypeId\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_adf5ede44035ee65db58c501d67f01d07}{GetTypeId}}\ (\textcolor{keywordtype}{void});}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00029}00029\ \ \ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00040}00040\ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a2e5af196e076be85b8442c5375bc3e7e}{Setup}}\ (Ptr<Socket>\ socket,}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00041}00041\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Address\ sinkAddress,}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00042}00042\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ uint32\_t\ packetSize,}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00043}00043\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ uint32\_t\ nPackets,}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00044}00044\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ DataRate\ dataRate,}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00045}00045\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ uint32\_t\ budget,}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00046}00046\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ flag\ =\ \textcolor{keyword}{false});}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00056}00056\ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a2e5af196e076be85b8442c5375bc3e7e}{Setup}}\ (Ptr<Socket>\ socket,}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00057}00057\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Address\ sinkAddress,}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00058}00058\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ uint32\_t\ packetSize,}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00059}00059\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ uint32\_t\ nPackets,}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00060}00060\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ DataRate\ dataRate,}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00061}00061\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ flag\ =\ \textcolor{keyword}{false});}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00062}00062\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00067}00067\ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_ae7820a661567dee9c180baebda7a4429}{ChangeRate}}\ (DataRate\ newDataRate);}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00068}00068\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00069}00069\ \textcolor{keyword}{private}:}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00070}00070\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00071}00071\ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_ada9c016c08e91a65da084c790acd4618}{StartApplication}}\ (\textcolor{keywordtype}{void})\ \textcolor{keyword}{override};}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00072}00072\ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_aab68d0f087fac0f3d02e3c8717b8cc21}{StopApplication}}\ (\textcolor{keywordtype}{void})\ \textcolor{keyword}{override};}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00073}00073\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00075}00075\ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a217460003efed056634b84d512c0f47b}{ScheduleTx}}\ ();}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00077}00077\ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a844392732fe5f6e197992c862c4151db}{SendPacket}}\ ();}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00078}00078\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00079}\mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_aab22ae4139e567c50bacd3e231407147}{00079}}\ \ \ Ptr<Socket>\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_aab22ae4139e567c50bacd3e231407147}{m\_socket}};\ \ \ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00080}\mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a054ebc8dca3d709e0ef224465ec2d9bc}{00080}}\ \ \ Address\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a054ebc8dca3d709e0ef224465ec2d9bc}{m\_peer}};\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00081}\mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_ae51a9c8759e37e18a79e058ef519bcce}{00081}}\ \ \ uint32\_t\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_ae51a9c8759e37e18a79e058ef519bcce}{m\_packetSize}};\ \ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00082}\mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a96e0bf33b34279f8ac18d854702da5e5}{00082}}\ \ \ uint32\_t\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a96e0bf33b34279f8ac18d854702da5e5}{m\_nPackets}};\ \ \ \ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00083}\mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a0c89a7a5f07d90b347e46045b03e7c7a}{00083}}\ \ \ DataRate\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a0c89a7a5f07d90b347e46045b03e7c7a}{m\_dataRate}};\ \ \ \ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00084}\mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_aec2ba587631beecd7da9f53b39909706}{00084}}\ \ \ EventId\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_aec2ba587631beecd7da9f53b39909706}{m\_sendEvent}};\ \ \ \ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00085}\mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a592e26fa24bf64e140f33f6853b7c2f9}{00085}}\ \ \ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a592e26fa24bf64e140f33f6853b7c2f9}{m\_running}};\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00086}\mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_abca558ff6138a432a1ed7413b2fe2fd7}{00086}}\ \ \ uint32\_t\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_abca558ff6138a432a1ed7413b2fe2fd7}{m\_packetSent}};\ \ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00087}\mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_abd5375f6282c6727baa7fb565cff8a3e}{00087}}\ \ \ uint32\_t\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_abd5375f6282c6727baa7fb565cff8a3e}{m\_budget}};\ \ \ \ \ \ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00088}\mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a3cb6df6b08f1d2e547e56bee6581a5fc}{00088}}\ \ \ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a3cb6df6b08f1d2e547e56bee6581a5fc}{m\_flag}};\ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00089}\mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a1df7eb2d3df2b8170a9fc452e0b2a49b}{00089}}\ \ \ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{classns3_1_1_d_g_r_udp_application_a1df7eb2d3df2b8170a9fc452e0b2a49b}{m\_vbr}};\ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00090}00090\ \};}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00091}00091\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00092}00092\ \}\ \textcolor{comment}{//\ namespace\ ns3}}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00093}00093\ }
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00094}00094\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ DGR\_APPLICATION\_H\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{dgr-udp-application_8h_source_l00095}00095\ }

\end{DoxyCode}
